package edu.stu.book.book.keeping.utils

import androidx.compose.ui.graphics.vector.ImageVector
import edu.stu.book.book.keeping.R
import edu.stu.book.book.keeping.db.dao.CostType

object CostUtils {

    fun getCostTypeIcon(costType: CostType): Int = when (costType) {
        is CostType.FavorType -> CostType.FavorType().icon
        is CostType.Restaurant -> CostType.Restaurant().icon
        is CostType.Snacks -> CostType.Snacks().icon
        is CostType.DayUse -> CostType.DayUse().icon
        is CostType.Shop -> CostType.Shop().icon
        is CostType.Bus -> CostType.Bus().icon
        is CostType.Fruits -> CostType.Fruits().icon
        is CostType.Motion -> CostType.Motion().icon
        is CostType.Play -> CostType.Play().icon
        is CostType.Vegetable -> CostType.Vegetable().icon
    }

    fun getCostTypeText(costType: CostType): String = when (costType) {
        is CostType.FavorType -> CostType.FavorType().text
        is CostType.Restaurant -> CostType.Restaurant().text
        is CostType.Snacks -> CostType.Snacks().text
        is CostType.DayUse -> CostType.DayUse().text
        is CostType.Shop -> CostType.Shop().text
        is CostType.Bus -> CostType.Bus().text
        is CostType.Fruits -> CostType.Fruits().text
        is CostType.Motion -> CostType.Motion().text
        is CostType.Play -> CostType.Play().text
        is CostType.Vegetable -> CostType.Vegetable().text
    }
}